package com.doubao.doubao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doubao.doubao.model.entity.BmsComment;
import com.doubao.doubao.model.vo.CommentVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;


@Repository
public interface BmsCommentMapper extends BaseMapper<BmsComment> {

    /**
     * getCommentsByTopicID
     *
     * @param topicid
     * @return
     */
    List<CommentVO> getCommentsByTopicID(@Param("topicid") String topicid);

    List<CommentVO> getParentCom(@Param("parentid") String parentid);

    List<CommentVO> getParentCom2(@Param("itemid") String itemid);

}
